projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7050d53
)
(update-file-autoloads): Use anchored regexp search instead of requiring
author
Roland McGrath
<roland@gnu.org>
Thu, 7 Aug 1997 15:53:39 +0000
(15:53 +0000)
committer
Roland McGrath
<roland@gnu.org>
Thu, 7 Aug 1997 15:53:39 +0000
(15:53 +0000)
leading newline before generate-autoload-cookie, which gave false negative
if sole cookie in file was at bob.
lisp/emacs-lisp/autoload.el
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/autoload.el
b/lisp/emacs-lisp/autoload.el
index 986cb74661c760c6d21a2fb320357059bee403d3..adc8b6fb2244122692f3c614940b30a423d16371 100644
(file)
--- a/
lisp/emacs-lisp/autoload.el
+++ b/
lisp/emacs-lisp/autoload.el
@@
-376,8
+376,9
@@
Autoload section for %s is up to date."
(widen)
(goto-char (point-min))
(prog1
- (if (search-forward
- (concat "\n" generate-autoload-cookie)
+ (if (re-search-forward
+ (concat "^" (regexp-quote
+ generate-autoload-cookie))
nil t)
nil
(if (interactive-p)